package main

import (
	"fmt"
	"net/http"
)

func handler(wrtier http.ResponseWriter, request *http.Request) {
	fmt.Fprintf(wrtier, " 路径为 %s", request.URL.Path)
	fmt.Fprintf(wrtier, " 路径2为 %s", request.URL.RawQuery)
	fmt.Fprintf(wrtier, " 路径3为 %s", request.Header)
	fmt.Fprintf(wrtier, " 路径4为 %s", request.URL.RawQuery)
}
func main() {
	// mux := http.NewServeMux()
	// files := http.FileServer(http.Dir("/public"))
	// mux.Handle("/static/", http.StripPrefix("/static/", files))
	fmt.Println("hello4!")
	http.HandleFunc("/", handler)
	http.ListenAndServe(":6868", nil)

}
